php remove last newline from string

55

php remove last newline from string -

$string = rtrim($string_to_remove);

php string remove last character -

echo substr('a,b,c,d,e,', 0, -1);
# => 'a,b,c,d,e'

remove last character from string php -

$newarraynama = rtrim($arraynama, ", ");

Comments

Submit
0 Comments